package com.abso.sunlight.explorer.viewers;

import org.eclipse.jface.viewers.ViewerComparator;

/**
 * The tree viewer comparator for the Congress Explorer tree.
 */
public class ExplorerTreeComparator extends ViewerComparator {

    /** Constructs a new comparator. */
    public ExplorerTreeComparator() {
        super(String.CASE_INSENSITIVE_ORDER);
    }

    @Override
    public int category(Object element) {
        return ((ExplorerTreeNode) element).getType().ordinal();
    }

}
